﻿Imports System.Data
Imports System.Data.SqlClient

Public Class GiangVienBUS
    Private qlGVDAO As GiangVienDAO
    Public Sub New()
        qlGVDAO = New GiangVienDAO
    End Sub
    Public Shared Function GetData() As DataTable
        Dim dt As DataTable = New DataTable()
        dt = GiangVienDAO.GetData()
        Return dt
    End Function
    Public Shared Sub ThemGV(ByVal GiangVien As GiangVienDTO)
        GiangVienDAO.ThemGV(GiangVien)
    End Sub
    Public Shared Sub UpDateGV(ByVal GiangVien As GiangVienDTO)
        GiangVienDAO.UpDateGV(GiangVien)
    End Sub
    Public Shared Sub DeleteGV(ByVal GiangVien As GiangVienDTO)
        GiangVienDAO.DeleteGV(GiangVien)
    End Sub

    Public Shared Sub CapNhat(ByVal bangGiangVien As DataTable)
        GiangVienDAO.CapNhat(bangGiangVien)
    End Sub
    Public Shared Function LayDSGiangVien() As DataTable
        Dim dt As DataTable = New DataTable()
        dt = GiangVienDAO.LayDSGiangVien()
        Return dt
    End Function
    Public Shared Function LayCauTrucBang() As DataTable
        Dim dt As DataTable = New DataTable()
        dt = GiangVienDAO.LayCauTrucBang()
        Return dt
    End Function
End Class
